package com.skynet.springcloud.zuul.auth.util;


import com.skynet.springcloud.zuul.auth.enums.ResultEnum;
import com.skynet.springcloud.zuul.auth.vo.DataVO;
import com.skynet.springcloud.zuul.auth.vo.ResultVO;

/**
 * @author Skynet
 * @date 2017年11月23日 16:14
 */
public class ResultVOUtil {

    private ResultVOUtil() {
    }

    public static ResultVO<DataVO> error(ResultEnum resultEnum) {
        ResultVO<DataVO> resultVO = new ResultVO<>();
        DataVO dataVO = new DataVO();
        dataVO.setErrors(resultEnum.getMsg());
        resultVO.setData(dataVO);
        return resultVO;
    }

}
